Deutsche Bahn MCP Server

Created By
Paul von Berg9 months ago
A comprehensive Model Context Protocol (MCP) server that provides unified access to Deutsche Bahn (DB) and German mobility APIs. Built with Python, FastAPI, and FastMCP for seamless integration with Claude Desktop and other MCP clients. The server is ready for local and cloud deployment. A running MCP server is available to connect by adding the URL to your MCP Client: https://db-mcp.datamonkey.tech/mcp. 🚄 Complete Railway Data: Stations, timetables, real-time disruptions, and parking
Overview

📋 Quick Start (for developers - User instructions below) Prerequisites Python 3.11+ Deutsche Bahn API credentials (Get them here) Google Cloud account (for deployment) Local Development Clone and setup:

git clone

cp .env.example .env Next, edit the new .env file with your DB API credentials. See the "Configuration" section for details on each variable.

Run the server:

python main.py

Server available at http://localhost:8080

🎯 Live Server Usage Guide The Deutsche Bahn MCP Server is live at https://db-mcp.datamonkey.tech and ready to use immediately. Follow these step-by-step guides to start accessing German railway data in Claude.

🖥️ Claude Desktop Setup Step 1: Locate your configuration file

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json Linux: ~/.config/Claude/claude_desktop_config.json Step 2: Edit the configuration Open the file and add the Deutsche Bahn server:

{ "mcpServers": { "deutschebahn": { "command": "npx", "args": [ "-y", "mcp-remote", "https://db-mcp.datamonkey.tech/mcp", "--transport", "http-only" ] } } } Step 3: Restart Claude Desktop

Close Claude Desktop completely Reopen the application You should see "Deutsche Bahn MCP Server" in the MCP section Step 4: Test the connection Ask Claude: "What train stations are in Berlin?"

🌐 Claude.ai Web Usage Step 1: Start a conversation Go to claude.ai and begin a new conversation.

Step 2: Add the MCP Server Click on "Search and Tools > Add connectors > Manage connectors" Select "Add custom connector" Enter a name, e.g.: "Deutsche Bahn MCP Server" Enter this remote MCP Server URL: https://db-mcp.datamonkey.tech/mcp

Step 3: Test immediately Try asking: "Find train stations near Frankfurt and check for any current delays at Frankfurt Hauptbahnhof."

Server Config

{
  "mcpServers": {
    "deutschebahn": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://db-mcp.datamonkey.tech/mcp",
        "--transport",
        "http-only"
      ]
    }
  }
}
Project Info
Created At
9 months ago
Updated At
9 months ago
Author Name
Paul von Berg
Star
-
Language
-
License
-
Category

Recommend Servers

View All
Tavily Mcp
@tavily-ai

JavaScript
a year ago
Inferventis
@Bankee-ai

21 minutes ago
Forkit

2 hours ago